home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3c / getnetgrent.z / getnetgrent
Encoding:
Text File  |  2002-10-03  |  3.8 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GGGGEEEETTTTNNNNEEEETTTTGGGGRRRREEEENNNNTTTT((((3333YYYY))))                                                GGGGEEEETTTTNNNNEEEETTTTGGGGRRRREEEENNNNTTTT((((3333YYYY))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      getnetgrent, innetgr, setnetgrent, endnetgrent - get NIS network group
  10.      entry
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<nnnneeeettttddddbbbb....hhhh>>>>
  14.  
  15.      iiiinnnntttt iiiinnnnnnnneeeettttggggrrrr((((cccchhhhaaaarrrr ****nnnneeeettttggggrrrroooouuuupppp,,,, cccchhhhaaaarrrr ****mmmmaaaacccchhhhiiiinnnneeee,,,, cccchhhhaaaarrrr ****uuuusssseeeerrrr,,,, cccchhhhaaaarrrr ****ddddoooommmmaaaaiiiinnnn))));;;;
  16.  
  17.      iiiinnnntttt ggggeeeettttnnnneeeettttggggrrrreeeennnntttt((((cccchhhhaaaarrrr ********mmmmaaaacccchhhhiiiinnnneeeepppp,,,, cccchhhhaaaarrrr ********uuuusssseeeerrrrpppp,,,, cccchhhhaaaarrrr ********ddddoooommmmaaaaiiiinnnnpppp))));;;;
  18.  
  19.      vvvvooooiiiidddd sssseeeettttnnnneeeettttggggrrrreeeennnntttt((((cccchhhhaaaarrrr ****nnnneeeettttggggrrrroooouuuupppp))));;;;
  20.  
  21.      vvvvooooiiiidddd eeeennnnddddnnnneeeettttggggrrrreeeennnntttt((((vvvvooooiiiidddd))));;;;
  22.  
  23. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  24.      _I_n_n_e_t_g_r returns 1 or 0, depending on whether _n_e_t_g_r_o_u_p contains the
  25.      machine, user, or domain triple as a member.  Any of the three strings
  26.      machine, user, or domain can be NULL, in which case it signifies a wild
  27.      card.
  28.  
  29.      _G_e_t_n_e_t_g_r_e_n_t returns the next member of a network group.  After the call,
  30.      machinep will contain a pointer to a string containing the name of the
  31.      machine part of the network group member, and similarly for userp and
  32.      domainp.  If any of machinep, userp or domainp is returned as a NULL
  33.      pointer, it signifies a wild card. _G_e_t_n_e_t_g_r_e_n_t will _m_a_l_l_o_c(3) space for
  34.      the name.  This space is released when a _e_n_d_n_e_t_g_r_e_n_t call is made.
  35.      _G_e_t_n_e_t_g_r_e_n_t returns 1 if it succeeding in obtaining another member of the
  36.      network group, 0 if it has reached the end of the group.
  37.  
  38.      _S_e_t_n_e_t_g_r_e_n_t establishes the network group from which _g_e_t_n_e_t_g_r_e_n_t will
  39.      obtain members, and also restarts calls to _g_e_t_n_e_t_g_r_e_n_t from the beginning
  40.      of the list.  If the previous _s_e_t_n_e_t_g_r_e_n_t call was to a different network
  41.      group and there has been no intervening call to _e_n_d_n_e_t_g_r_e_n_t, an
  42.      _e_n_d_n_e_t_g_r_e_n_t call is implied.  _E_n_d_n_e_t_g_r_e_n_t frees the space allocated
  43.      during the _g_e_t_n_e_t_g_r_e_n_t calls.
  44.  
  45. NNNNOOOOTTTTEEEE
  46.      The Mips ABI specifies nothing but local files so applications which wish
  47.      to use anything else must compile with libc prior to libnsl in the
  48.      library list.
  49.  
  50. FFFFIIIILLLLEEEESSSS
  51.      /etc/netgroup  database used to create NIS netgroup maps. This file
  52.                is ignored if NIS is not running.
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.